import { Request, Response } from "express";

export default {
  // 小程序调用，获取微信 Open ID
  "GET /api/wx_openid": (req: Request, res: Response) => {
    if (req.headers["x-wx-source"]) {
      res.send(req.headers["x-wx-openid"]);
    }
  },
};
